package com.blue.wechat.invoke;

/**
 * 微信接口远程调用异常
 * 
 * @author zhengj
 * @since 1.0 2017年1月21日
 */
public class InvokeException extends RuntimeException
{
	private static final long serialVersionUID = 1L;

	public static final String ERROR = "调用接口出错：";

	public static final String UNSUPPORTED_ASYNC = "不支持异步调用";

	public static final String WECHAT_NOT_FOUND = "找不到微信公众号：";
	public static final String WECHAT_URL_NOT_FOUND = "找不到接口：";
	public static final String WECHAT_ACCESS_TOKEN_ERROR = "获取 access_token 出错";
	public static final String WECHAT_JS_API_TICKET_ERROR = "获取 js_api_ticket 出错";

	public InvokeException(String message)
	{
		super(message);
	}

	public static InvokeException getException(String message)
	{
		return new InvokeException(message);
	}

}
